home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / nn.zip / S-SUNOS3.H < prev    next >
C/C++ Source or Header  |  1989-12-31  |  3KB  |  151 lines

  1. /*
  2.  *    This version is for SunOS 3.x systems (tested on 3.5)
  3.  */
  4.  
  5.  
  6. /*
  7.  *    Include header files containing the following definitions:
  8.  *
  9.  *         off_t, time_t, struct stat
  10.  */
  11.  
  12. #include <sys/types.h>
  13. #include <sys/stat.h>
  14.  
  15.  
  16. /*
  17.  *    Define if your system has system V like ioctls
  18.  */
  19.  
  20. #undef    HAVE_TERMIO            /* */
  21.  
  22. /*
  23.  *    Define to use terminfo database.
  24.  *    Otherwise, termcap is used
  25.  */
  26.  
  27. #undef    USE_TERMINFO            /* */
  28.  
  29. /*
  30.  *    Specify the library (or libraries) containing the termcap/terminfo
  31.  *    routines.
  32.  *
  33.  *    Notice:  nn only uses the low-level terminal access routines
  34.  *    (i.e. it does not use curses).
  35.  */
  36.  
  37. #define TERMLIB    -ltermlib
  38.  
  39. /*
  40.  *    Define HAVE_STRCHR if strchr() and strrchr() are available
  41.  */
  42.  
  43. #include <strings.h>
  44.  
  45. #define HAVE_STRCHR            /* */
  46.  
  47. /*
  48.  *    Define if a signal handler has type void (see signal.h)
  49.  */
  50.  
  51. #undef    SIGNAL_HANDLERS_ARE_VOID    /* */
  52.  
  53. /*
  54.  *    Define MICRO_ALARM to timeout after 0.1 seconds if possible
  55.  */
  56.  
  57. #define MICRO_ALARM()    ualarm(100000,0)    /* BSD 4.3 */
  58.  
  59. /*
  60.  *    Define if your system has BSD like job control (SIGTSTP works)
  61.  */
  62.  
  63. #define HAVE_JOBCONTROL            /* */
  64.  
  65.  
  66. /*
  67.  *    Define if your system has a 4.3BSD like syslog library.
  68.  */
  69.  
  70. #undef HAVE_SYSLOG
  71.  
  72. /*
  73.  *    Define if your system provides the "directory(3X)" access routines
  74.  *
  75.  *    If true, include the header file(s) required by the package below
  76.  *    (remember that <sys/types.h> or equivalent is included above)
  77.  *    Also typedef Direntry to the proper struct type.
  78.  */
  79.  
  80. #define    HAVE_DIRECTORY            /* */
  81.  
  82. #include <sys/dir.h>            /* BSD */
  83.  
  84. typedef struct direct Direntry;        /* BSD */
  85.  
  86. /*
  87.  *    Define if your system has a mkdir() library routine
  88.  */
  89.  
  90. #define    HAVE_MKDIR            /* */
  91.  
  92. /*
  93.  *    Define if your system provides a BSD like gethostname routine.
  94.  *    Otherwise, define HAVE_UNAME if uname() is avaiable.
  95.  */
  96.  
  97. #define    HAVE_GETHOSTNAME    /* BSD systems */
  98.  
  99. /*
  100.  *    Define HAVE_MULTIGROUP if system has simultaneous multiple group
  101.  *    membership capability (BSD style).
  102.  */
  103.  
  104. #define HAVE_MULTIGROUP
  105.  
  106. /*
  107.  *    Define DETATCH_TERMINAL to be a command sequence which 
  108.  *    will detatch a process from the control terminal
  109.  *    Also include system files needed to perform this HERE.
  110.  *    If not possible, just define it (empty)
  111.  */
  112.  
  113. #include <sys/file.h>    /* for O_RDONLY */
  114. #include <sys/ioctl.h>    /* for TIOCNOTTY */
  115.  
  116. #define    DETATCH_TERMINAL \
  117.     { int t = open("/dev/tty", O_RDONLY); \
  118.       if (t >= 0) ioctl(t, TIOCNOTTY, (int *)0), close(t); }
  119.  
  120.       
  121. /* 
  122.  *    Specify where the Bourne Shell is.
  123.  */
  124.  
  125. #define SHELL        "/bin/sh"
  126.  
  127. /*
  128.  *    Specify the default mailer to be invoked by nnmail
  129.  */
  130.  
  131. #define    MAILX    "/usr/ucb/Mail"        /* BSD */
  132.  
  133.  
  134. /*
  135.  *    Specify the default pager & options.
  136.  */
  137.  
  138. #define    PAGER    "more"
  139.  
  140. /*
  141.  *    Specify the default print command and options.
  142.  */
  143.  
  144. #define    PRINTER        "lpr -s"
  145.  
  146. /*
  147.  *    Define the maximum length of any pathname that may occur
  148.  */
  149.  
  150. #define    FILENAME     256
  151.